package com.qfedu.stussm.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeptR {
    private int code;
    private String msg;
    private Object data;

    public static DeptR ok(Object data){
        return new DeptR(200,"ok",data);
    }
    public static DeptR fail(){
        return new DeptR(400,"fail",null);
    }
    public static DeptR ok(){
        return new DeptR(200,"ok",null);
    }
}
